sum=0
count=0
while True:
    x=int(input())
    if x==0:
        break
    else:
        count+=1
        sum+=x
print(sum)
print(sum/count)